/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using VOL.Entity;
using VOL.Entity.SystemModels;

namespace BusFin.Read.Entity.DomainModels
{
    [Entity(TableCnName = "采购",TableName = "PurchaseNote")]
    public partial class PurchaseNote:BaseEntity
    {
        /// <summary>
       ///采购编号
       /// </summary>
       [SugarColumn(IsPrimaryKey = true)]
       [Key]
       [Display(Name ="采购编号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string PurchaseId { get; set; }

       /// <summary>
       ///单据类型
       /// </summary>
       [Display(Name ="单据类型")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? DocumentType { get; set; }

       /// <summary>
       ///供应商编号
       /// </summary>
       [Display(Name ="供应商编号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string SupplierCode { get; set; }

       /// <summary>
       ///供应商联系人
       /// </summary>
       [Display(Name ="供应商联系人")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string SupplierName { get; set; }

       /// <summary>
       ///供应商电话
       /// </summary>
       [Display(Name ="供应商电话")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string SupplierPhone { get; set; }

       /// <summary>
       ///收货日期
       /// </summary>
       [Display(Name ="收货日期")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? ReceiptDate { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [MaxLength(200)]
       [Column(TypeName="nvarchar(200)")]
       [Editable(true)]
       public string Remark { get; set; }

       /// <summary>
       ///制单人
       /// </summary>
       [Display(Name ="制单人")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string DocumentMaker { get; set; }

       /// <summary>
       ///制单日期
       /// </summary>
       [Display(Name ="制单日期")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? MakeOrderTime { get; set; }

       /// <summary>
       ///采购状态
       /// </summary>
       [Display(Name ="采购状态")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? OrderStatus { get; set; }

       /// <summary>
       ///是否入账
       /// </summary>
       [Display(Name ="是否入账")]
       [Column(TypeName="sbyte")]
       [Editable(true)]
       public sbyte? IsEntry { get; set; }

       /// <summary>
       ///是否退回
       /// </summary>
       [Display(Name ="是否退回")]
       [Column(TypeName="sbyte")]
       [Editable(true)]
       public sbyte? IsSendBack { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? CreateTime { get; set; }

       /// <summary>
       ///是否删除
       /// </summary>
       [Display(Name ="是否删除")]
       [Column(TypeName="sbyte")]
       [Editable(true)]
       public sbyte? IsDeleted { get; set; }

       
    }
}